package org.jerry.virtualoperator.vo;

import lombok.Data;

import java.io.Serializable;


@Data
public class Click<T> implements Serializable {

    private int code;
    private String msg;
    private T data;

    public static <T> Click<T> succ(T t) {
        Click<T> click = new Click<T>();
        click.code = 0;
        click.msg = "suc";
        click.data = t;
        return click;
    }

    public static <T> Click<T> succ() {
        Click<T> click = new Click<T>();
        click.code = 0;
        click.msg = "suc";
        click.data = null;
        return click;
    }
}
